package by.vkhalko.asamo;

import javax.inject.Inject;

import org.springframework.stereotype.Service;

import by.vkhalko.asamo.services.CompanyService;
import by.vkhalko.asamo.services.ContactService;
import by.vkhalko.asamo.services.CustomerService;
import by.vkhalko.asamo.services.EmployeeService;
import by.vkhalko.asamo.services.ExecutorService;
import by.vkhalko.asamo.services.JobTitleService;
import by.vkhalko.asamo.services.OrderService;
import by.vkhalko.asamo.services.PersonService;
import by.vkhalko.asamo.services.StatusService;
import by.vkhalko.asamo.services.TaskService;
import by.vkhalko.asamo.services.WorkService;

@Service
public class DBCleaner {

	@Inject
	private ExecutorService executorService;

	@Inject
	private ContactService contactService;

	@Inject
	private EmployeeService employeeService;

	@Inject
	private JobTitleService jobTitleService;

	@Inject
	private PersonService personService;

	@Inject
	private CompanyService companyService;

	@Inject
	private OrderService orderService;

	@Inject
	private CustomerService customerService;

	@Inject
	private StatusService statusService;

	@Inject
	private TaskService taskService;

	@Inject
	private WorkService workService;

	public void CleanUpData() {

		workService.deleteAll();
		orderService.deleteAll();
		customerService.deleteAll();
		executorService.deleteAll();
		taskService.deleteAll();
		statusService.deleteAll();
		employeeService.deleteAll();
		jobTitleService.deleteAll();
		companyService.deleteAll();
		contactService.deleteAll();
		personService.deleteAll();

	}

}
